package com.maixy.rabbitmqdemo.delay;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @ClassName DelayTestController
 * @Description TODO
 * @Date 2021/3/23 21:02
 * @Author maixy
 */
@RestController
@RequestMapping("/delay")
public class DelayTestController {

    @Resource
    private DelaySender delaySender;


    /**
     *
     * 延迟队列不能使用测试用例测试，所以我只能写在Controller中
     */
    @GetMapping("/test1")
    public void deleteTest1() {
        delaySender.sendMsg();
    }

}
